//
//  NSDateFormatter+CYDateFormatter.m
//  cyjf
//
//  Created by tauCross on 2017/5/29.
//  Copyright © 2017年 Auto Financing. All rights reserved.
//

#import "NSDateFormatter+CYDateFormatter.h"



@implementation NSDateFormatter (CYDateFormatter)

+ (NSDateFormatter *)cy_formatterWithFormat:(NSString *)formate
{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    dateFormatter.timeZone = [NSTimeZone timeZoneWithName:@"Asia/Shanghai"];
    dateFormatter.dateFormat = formate;
    return dateFormatter;
}

@end
